#include"Mystdio.h"
#include<assert.h>
#include<string.h>
#include<unistd.h>
const char* filename = "log.txt";
const char* msg = "hello,mysthio.h\n";

#define BUFFSIZE 100
char buff[BUFFSIZE];

int main(){
  
  _FILE* fp = _fopen(filename,'r');
  assert(fp!=NULL);

  //_fwrite(msg,sizeof(char),strlen(msg),fp);
  int len = _fread(buff,sizeof(char),BUFFSIZE,fp);
  write(1,buff,len);
  _close(fp);

  return 0;
}
